import request from '@/utils/request'
import config from '@/utils/config'
import { splitStr } from '@/api/common'

// 订单列表
// export function getOrderList(params) {
//   return request({
//     url: config.BaseUrl + '/server/order/page',
//     method: 'get',
//     params: splitStr(params)
//   })
// }

// 查询讲师是否绑卡？
export function selectCard(tid) {
  return request({
    url: config.BaseUrl + '/teacher/bankCardInfo/' + tid,
    method: 'get'
  })
}

// 提款
export function submitMoney(params) {
  return request({
    url: config.BaseUrl + '/teacherCashRecord',
    method: 'post',
    data: params
  })
}

/* 飞象链订单接口 */

// 订单列表
export function getOrderList(params) {
  return request({
    url: config.BaseUrl + '/vipOrder/query/page',
    method: 'get',
    params: splitStr(params)
  })
}

// 新增备注 uid vipOrderId remark
export function addRemark(params) {
  return request({
    url: config.BaseUrl + '/vipOrder/add/remark',
    method: 'post',
    data: params
  })
}

// 分页查询订单备注记录 vipOrderId
export function getRemarkPage(params) {
  return request({
    url: config.BaseUrl + '/vipOrder/remark/page',
    method: 'get',
    params: splitStr(params)
  })
}

